package com.dyw.springbootpersonal.result;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author Devil
 * @create 2022-01-29-20:59
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Result {
    private Boolean flag;
    private Object result;

    public Result(Object result) {
        this.result = result;
        this.flag = true;
    }

    public Result(boolean flag) {
        this.flag = flag;
    }
}
